package com.example.imoocboot;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.data.jpa.convert.threeten.Jsr310JpaConverters;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.scheduling.annotation.EnableAsync;

import lombok.extern.slf4j.Slf4j;

@SpringBootApplication(scanBasePackages = {"com.example"})
@ServletComponentScan("com.example")
@EnableJpaRepositories("com.example")
@Slf4j
@EntityScan(value = "com.example", basePackageClasses = {ImoocbootApplication.class, Jsr310JpaConverters.class})
@EnableAsync
public class ImoocbootApplication {

	public static void main(String[] args) {
		SpringApplication.run(ImoocbootApplication.class, args);
	}
}
